package com.dunjx.fast.feign;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "FASTFILE")
@RequestMapping("/file")
public interface FastFeign {
    @PostMapping(value = "upload", consumes = "multipart/form-data")
    public Result upload(@RequestPart("file") MultipartFile file);

    @PostMapping("/delete")
    public  Result delete(@RequestParam("groupName") String groupName, @RequestParam("fileName") String fileName);
}
